package com.chuangjiangx.member.stored.ddd.query.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 储值明细列表返回结果集--商户平台
 * Created by YangKuo on 2017/11/29.
 */
@Data
public class StoredDetailListForMerchantDTO {

    /**
     * 储值明细id
     */
    private Long id;

    /**
     * 交易单号
     */
    private String storedNum;

    /**
     * 交易时间
     */
    private Date dateTime;

    /**
     * 会员手机号
     */
    private String mobile;

    /**
     * 交易类型: 1：储值 ,2：消费,3：退款:
     */
    private Byte type;

    private String typeText;

    /**
     * 交易金额
     */
    private BigDecimal transactionAmount;

    /**
     * 赠送金额
     */
    private BigDecimal giftAmount;

    /**
     * 可用余额
     */
    private BigDecimal availableBalance;

    /**
     * 交易后余额
     */
    private BigDecimal postTradingBalance;

    /**
     * 操作人
     */
    private String operationUser;

    /**
     * 支付方式
     */
    private Byte payType;

    private String payTypeText;

    /**
     * 来源
     */
    private Byte payTerminal;

    private String payTerminalText;

    /**
     * 支付入口
     */
    private Byte payEntry;

    private String payEntryText;


    public StoredDetailListForMerchantDTO(Long id, String storedNum, Date dateTime, String mobile, Byte type, BigDecimal transactionAmount, BigDecimal giftAmount, BigDecimal availableBalance,BigDecimal postTradingBalance, Byte payType, String operationUser, Byte payTerminal, Byte payEntry) {
        this.id = id;
        this.storedNum = storedNum;
        this.dateTime = dateTime;
        this.mobile = mobile;
        this.type = type;
        this.transactionAmount = transactionAmount;
        this.giftAmount = giftAmount;
        this.availableBalance = availableBalance;
        this.postTradingBalance = postTradingBalance;
        this.payType = payType;
        this.operationUser = operationUser;
        this.payTerminal = payTerminal;
        this.payEntry = payEntry;
    }
}
